{% extends 'base.html' %}

{% block title %}登录{% endblock %}
{% block head %}
    <meta name="csrf-token" content="{{ csrf_token }}">
{% endblock %}

{% block body %}
<div class="container-fluid">
  <div class="row">
      <div class="col-lg-6 col-md-6 col-sm-8 col-xs-11 col-lg-offset-3 col-md-offset-3 col-sm-offset-2">
          <form action="{% url 'front:signin' %}" method="post">
              <!-- <input type="hidden" name="csrfmiddlewaretoken" value="X0fg8C1C19EY7O2aKnIlWCHF6Ik4kik0JmOPJ3WemWTSeCmiTiJqwI7haAQ91FAM"> -->
                {% csrf_token %}
              <div class="form-group">
                <label for="telphone">手机号</label>
                <input type="text" class="form-control" id="telphone" name="telphone">
              </div>
              <div class="form-group">
                <label for="password">密码</label>
                <input type="password" class="form-control" id="password" name="password">
              </div>
              <button type="submit" class="btn btn-default">登录</button>
              {% if messages %}
                <div class="form-group">
                      <label></label>
                      <ul>
                          {% for message in messages %}
                            <li>{{ message }}</li>
                          {% endfor %}
                      </ul>
                  </div>
              {% endif %} 
          </form>
      </div>
  </div>
</div>
{% endblock %}